import { getMovieList } from './movielist'
export const getDetailInfo = (MovieName) => {
  // 电影详细信息封装
  const movielist = getMovieList()
  const temp = movielist.find(ele => ele.name === MovieName)
  return temp || null
}
export const getDetailInfolist = () => {
  const movielist = getMovieList()
  const temp = movielist.filter(ele => ele.buy === true)
  return temp || null
}
